package com.brp.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author all
 * @since 2022-03-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_cargo")
public class Cargo extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cargo_id", type = IdType.AUTO)
    private Integer cargoId;

    private String cargoName;

    private String cargoVender;

    private Integer fkProviderId;

    private Integer cargoPurchasePrice;

    private Integer cargoSalePrice;

    private String cargoType;

    private Integer cargoRepertory;

//    此类不是数据库里的
    @TableField(exist = false)
    private Buyrecord buyrecord;

}
